﻿function printIfDefined(str) {
    if (str != '')
        return str;

    return 'Not defined';
}

function nullToEmptyString(val) {
    if (val != null)
        return val;

    return '';
}

function isNullOrEmpty(val) {
    if (val == null || val == '')
        return true;

    return false;
}

function isSelectActive(index) {
    if (index == -1 || index == 0)
        return false;

    return true;
}